module.exports = {
  plugins: {
    'postcss-import': {},
    'postcss-url': {},
    'postcss-aspect-ratio-mini': {},
    'postcss-write-svg': {
      utf8: false,
    },
    'postcss-cssnext': {},
    'postcss-px-to-viewport': {
      viewportWidth: 375, // 设计稿的尺寸
      viewportHeight: 667,
      unitPrecision: 3,
      viewportUnit: 'vw',
      selectorBlackList: ['.ignore', '.hairlines', 'van-tag', 'van-divider'],
      minPixelValue: 1,
      mediaQuery: false,
    },
    'postcss-viewport-units': {
      filterRule: (rule) =>
        rule.nodes.findIndex((i) => i.prop === 'content') === -1,
    },
    cssnano: {
      autoprefixer: true,
      'posrcss-zindex': false,
    },
  },
}
